c program to check whether a triangle is valid or not